(function () {
    angular.module('app')
        .component('xxToolbar', {
            templateUrl: '/app/toolbars/toolbar/toolbar.html',
            controller: ctrl
        });

    function ctrl($scope,ToolbarFactory,userService,$state) {
        $scope.login = function () {
            $state.go('login')
            }
        $scope.register = function () {
            $state.go('register')
        }
        $scope.home = function () {
            $state.go('home')
        }
    }
})();
